package Bean;

import Utils.XmlReplace;

public class ClipBean{
	private String ClipId;
	private String ClipName;
	private String ClipDescription;
	private String ClipPath;
	private String ClipThumbnail;
	private String ClipDate;
	private String ClipCat;
	public String getClipCat() {
		return ClipCat;
	}
	public void setClipCat(String clipCat) {
		ClipCat = clipCat;
	}
	public String getClipDate() {
		return ClipDate;
	}
	public void setClipDate(String clipDate) {
		ClipDate = clipDate;
	}
	public String getClipId() {
		return ClipId;
	}
	public void setClipId(String clipId) {
		ClipId = clipId;
	}
	public String getClipName() {
		return ClipName;
	}
	public void setClipName(String clipName) {
		ClipName = clipName;
	}
	public String getClipDescription() {
		return ClipDescription;
	}
	
	public String getClipPath() {
		return ClipPath;
	}
	public void setClipPath(String clipPath) {
		ClipPath = clipPath;
	}
	public void setClipDescription(String clipDescription) {
		ClipDescription = clipDescription;
	}
	public String getClipThumbnail() {
		return ClipThumbnail;
	}
	public void setClipThumbnail(String clipThumbnail) {
		ClipThumbnail = clipThumbnail;
	}
	public String makeXML(){
		return "<item path=\""+ClipPath+"\" " +
				"thumbnail=\""+ClipThumbnail+"\" " +
				"id=\""+ClipId+"\" " +
				"cat=\""+ClipCat+"\" " +
				"date=\""+ClipDate+"\" " +
				"name=\""+XmlReplace.escape(ClipName)+"\" " +
				"description=\""+XmlReplace.escape(ClipDescription)+"\"/>";
	}
}